import Main from '@/layout/Main.vue';

export default [
    {
        path: '/system',
        name: 'system',
        meta: {
            title: '系统管理',
        },
        component: Main,
        children: [
            {
                // 用户列表
                path: '/system-user',
                name: 'system-user',
                meta: {
                    title: '用户列表',
                },
                component: () => import('@/views/SystemModule/SystemUser'),
            },
            {
                // 全局参数
                path: '/system-param',
                name: 'system-param',
                meta: {
                    title: '全局参数',
                },
                component: () => import('@/views/SystemModule/SystemParam'),
            },
            {
                // 数据字典
                path: '/system-dictionary',
                name: 'system-dictionary',
                meta: {
                    title: '数据字典',
                },
                component: () =>
                    import('@/views/SystemModule/SystemDictionary'),
            },
            {
                // 系统菜单
                path: '/system-menu',
                name: 'system-menu',
                meta: {
                    title: '系统菜单',
                },
                component: () => import('@/views/SystemModule/SystemMenu'),
            },
            {
                // 角色列表
                path: '/system-role',
                name: 'system-role',
                meta: {
                    title: '角色列表',
                },
                component: () => import('@/views/SystemModule/SystemRole'),
            },
            {
                // 日志管理
                path: '/system-log',
                name: 'system-log',
                meta: {
                    title: '日志管理',
                },
                component: () => import('@/views/SystemModule/SystemLog'),
            },
            {
                //审批设置
                path: '/system-flowset',
                name: 'system-flowset',
                meta: {
                    title: '审批设置',
                },
                component: () => import('@/views/SystemModule/SystemFlowset'),
            },
        ],
    },
];
